package com.cj.file.entity;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Repository;

/**
 * @Author cheng jun
 * @Description:
 * @Date 2021/7/8 19:38
 */
/**
 * 支持Nacos的动态刷新功能
 */
@RefreshScope
@Repository
@ConfigurationProperties(prefix = "file")
@Data
public class FileProperties {
    /**
     * 路径
     */
    private String path;

    /**
     * 文件大小
     */
    private String size;
}
